package com.ph.shopping.facade.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ph.shopping.common.core.base.BaseMapper;
import com.ph.shopping.facade.permission.entity.Menu;
import com.ph.shopping.facade.permission.vo.MenuVo;

public interface MenuMapper extends BaseMapper<Menu>{
	
	
	/**
	 * 根据角色id获取菜单
	 * @param roleIds
	 * @return
	 * @author Mr.chang
	 */
    List<MenuVo> getMenuByRoleIdAndUserId(@Param("roleIds") List<Long> roleIds);
	
	/**
	 * 通过角色id查询该角色的基础菜单
	 * @return
	 * @author Mr.chang
	 */
    List<MenuVo> getAllMenuByRoleID(@Param("roleID") Long roleID);


    /**
     * 查询所有菜单
     * @return
     * @author Mr.chang
     */
    List<MenuVo> getAllMenu();

	/**
	 * 通过菜单名称查询菜单
	 * @return
	 * @author Mr.chang
	 */
	List<MenuVo> getMenuByName(@Param("menuName") String menuName);
	
}
